Parameters
- bytes
Library/Library.Test/TestDbGuid.cs
| C# | Copy Code |
|---|---|
DbGuid testA = DbGuid.NewGuid(); byte[] bytes = testA.ToByteArray(); DbGuid testB = new DbGuid(bytes); Assert.AreEqual(testA, testB); | |
| VB.NET | Copy Code |
|---|---|
Dim testA As DbGuid = DbGuid.NewGuid() Dim bytes As Byte() = testA.ToByteArray() Dim testB As New DbGuid(bytes) Assert.AreEqual(testA, testB) | |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7